package com.green.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.green.system.common.DataGridView;
import com.green.system.domain.User;
import com.green.system.vo.UserVo;

/**
 * Created with IntelliJ IDEA.
 * @Author: Green
 * @Date: 2021/10/18/8:32
 * @Description: 
 */


public interface UserService extends IService<User>{

    /**
    * @Description: 根据用户登录名查询用户信息
    * @Param: [loginName]
    * @return: com.green.system.domain.User
    * @Author: Green
    * @Date: 2021/10/18
    */
    User queryUserByLoginName(String loginName);

    DataGridView queryAllUser(UserVo userVo);

    User saveUser(User user);

    User updateUser(User user);

    Integer queryUserMaxOrderNum();

    void saveUserRole(Integer uid, Integer[] rids);

    Integer queryUserMaxId();
}
